package com.example.demo.service.impl;

import com.example.demo.domain.Evection;
import com.example.demo.domain.Vo.EvectionVo;
import com.example.demo.mapper.EvectionMapper;
import com.example.demo.service.IEvectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EvectionServiceImpl implements IEvectionService {

    @Autowired
    public EvectionMapper evectionMapper;

    /**
     * 查询用户
     * @param evection
     * @return
     */
    @Override
    public List<EvectionVo> selectEvection(Evection evection) {
        return evectionMapper.selectEvection(evection);
    }

    /**
     * 增加角色
     * @param evection
     */
    @Override
    public void insertEvection(Evection evection) {
        evectionMapper.insertEvection(evection);
    }

    /**
     * 修改出差申请
     * @param evection
     */
    @Override
    public void updateEvectionById(Evection evection) {
        evectionMapper.updateEvectionById(evection);
    }

    /**
     * 删除出差申请
     * @param evectionId
     */
    @Override
    public void delEvectionById(long evectionId) {
        evectionMapper.delEvectionById(evectionId);
    }


}
